WPDiscourse\Test\DiscoursePublishTest S

Total Complexity 33
Dependencies 3
Dependents 0
Total lines 824
Lines of code 507
Logical lines of code 316
Comment lines 186
Methods 26
Properties 1

Methods 26

Method Rating Maintainability Complexity Lines of code
test_wpdc_publish_options()
S
48 4 32
test_exclude_tags_with_non_exclusionary_tag()
S
50 3 27
test_exclude_tags_with_exclusionary_tag()
S
52 3 24
test_sync_to_discourse_discourse_username_with_single_user_api_key()
S
45 1 44
test_sync_to_discourse_discourse_username()
S
49 1 31
test_sync_to_discourse_when_updating_with_deleted_topic()
S
49 1 31
initialize_variables()
S
52 1 27
test_sync_to_discourse_when_updating_with_featured_link()
S
52 1 25
test_sync_to_discourse_when_creating_with_embed_error()
S
51 1 25
test_sync_to_discourse_when_creating_with_enqueued_post()
S
52 1 24
test_sync_to_discourse_when_creating_with_category_error()
S
52 1 24
test_sync_to_discourse_when_creating_with_response_body_error()
S
53 1 23
test_sync_to_discourse_pin_topic()
S
53 1 22
test_sync_to_discourse_when_updating_with_direct_db_publication_flags()
S
52 1 22
test_sync_to_discourse_when_updating()
S
54 1 20
test_sync_to_discourse_when_creating_with_direct_db_publication_flags()
S
55 1 18
test_sync_to_discourse_when_creating()
S
56 1 16
test_remote_post_failed_to_connect()
S
60 1 14
test_remote_post_forbidden()
S
60 1 13
test_remote_post_unprocessable()
S
60 1 13
setUp()
S
68 1 7
test_remote_post_success()
S
64 1 10
build_post_error()
S
74 1 4
build_body_error()
S
74 1 4
build_notice()
S
79 1 3
setUpBeforeClass()
S
77 1 4